package br.com.felix.fwt.ui;

import java.io.PrintWriter;

import br.com.felix.fwt.ui.exception.ComponentRenderException;

public class HiddenField extends BaseComponent{
	

	public HiddenField(String name) {
		setName(name);
	}

	@Override
	public void write(PrintWriter out) throws ComponentRenderException {
		out.write(String.format("\n<input type=\"hidden\" name=\"%s\" value=\"%s\"/>", getName(),getValue()));
	}

	@Override
	public boolean isInputControl() {
		return true;
	}
}
